package com.talent.study.disruptor.example;

import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: hszhou
 * @Date: 2025/4/15 9:44
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
@Slf4j
public class OrderEventHandler implements EventHandler<OrderEvent> {
    @Override
    public void onEvent(OrderEvent orderEvent, long l, boolean b) {
        log.info("消费者消费消息【{}】",orderEvent.getOrderId());
    }
}
